Type-Safe Two-Level Data Transformation
نویسندگان
چکیده
A two-level data transformation consists of a type-level transformation of a data format coupled with value-level transformations of data instances corresponding to that format. Examples of two-level data transformations include XML schema evolution coupled with document migration, and data mappings used for interoperability and persistence. We provide a formal treatment of two-level data transformations that is typesafe in the sense that the well-formedness of the value-level transformations with respect to the type-level transformation is guarded by a strong type system. We rely on various techniques for generic functional programming to implement the formalization in Haskell. The formalization addresses various two-level transformation scenarios, covering fully automated as well as user-driven transformations, and allowing transformations that are information-preserving or not. In each case, two-level transformations are disciplined by one-step transformation rules and type-level transformations induce value-level transformations.We demonstrate an example hierarchicalrelational mapping and subsequent migration of relational data induced by hierarchical format evolution.
منابع مشابه
Constraint-aware Schema Transformation
Data schema transformations occur in the context of software evolution, refactoring, and cross-paradigm data mappings. When constraints exist on the initial schema, these need to be transformed into constraints on the target schema. Moreover, when high-level data types are refined to lower level structures, additional target schema constraints must be introduced, such as referential integrity c...
متن کاملStrongly Typed Rewriting For Coupled Software Transformation
Coupled transformations occur in software evolution when multiple artifacts must be modified in such a way that they remain consistent with each other. An important example involves the coupled transformation of a data type, its instances, and the programs that consume or produce it. Previously, we have provided a formal treatment of transformation of the first two: data types and instances. Th...
متن کاملType-Safe Evolution of Spreadsheets
Spreadsheets are notoriously error-prone. To help avoid the introduction of errors when changing spreadsheets, models that capture the structure and interdependencies of spreadsheets at a conceptual level have been proposed. Thus, spreadsheet evolution can be made safe within the confines of a model. As in any other model/instance setting, evolution may not only require changes at the instance ...
متن کاملProvide a model for the establishment of the school in accordance with the indicators and requirements of the Education Transformation Document
Purpose: The aim of this study was to provide a model for school establishment in accordance with the indicators and requirements of the Education Transformation Document. Methodology: The research method was basic-applied in terms of purpose, descriptive-survey in terms of data collection method and combined in terms of data type. The statistical population of the study in the qualitative sect...
متن کاملEvaluation of Nurses ‘Performance from Nurses’ Viewpoints on Providing Safe Care to Patients in AjA Hospitals in 2018
Introduction: In recent years, patient safety has become one of the greatest concerns of organizations and health care providers. Nurses play a key role in providing safe and high quality cares in all units of the hospital, both general and Intensive Care Units. Since nurses are directly supervised by the head nurses, Objective: This study aimed to compare the performance of nurses from the vie...
متن کامل